package com.yg.scheduler.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 排期座位表
 * </p>
 *
 * @author 魏成龙
 * @since 2020-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("yg_scheduler_seat")
public class SchedulerSeat implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * x坐标
     */
    private Integer x;

    /**
     * y坐标
     */
    private Integer y;

    /**
     * 区域级别(1:A;2:B;3:C)
     */
    @TableField("areaLevel")
    private Integer areaLevel;

    /**
     * 排期Id
     */
    @TableField("scheduleId")
    private Long scheduleId;

    /**
     * 订单编号
     */
    @TableField("orderNo")
    private String orderNo;

    /**
     * 如果已经售出记录购买用户id
     */
    @TableField("userId")
    private Long userId;

    /**
     * 座位状态(0:没座位 1:有座位 2:锁定待付款 3:已售出 )
     */
    private Integer status;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 创建时间
     */
    @TableField("createdTime")
    private LocalDateTime createdTime;

    /**
     * 更新时间
     */
    @TableField("updatedTime")
    private LocalDateTime updatedTime;


}
